package com.tally.server.dto;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author: sy
 * @Date: 2021/4/5 21:54
 * @Description:
 */
public class IncomeBatchDTO {
    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 日期
     */
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    private Date recordStartDate;

    /**
     * 日期
     */
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    private Date recordEndDate;

    /**
     * 收入类型|枚举[IncomeTypeEnum]: SALARY("SA","薪水"), SUBSIDY("SU", "补贴"),
     REWARD("RE","奖金"), PART_TIME("PA","兼职"), OTHERS("OT", "其它")
     */
    private String incomeType;

    /**
     * 金额
     */
    private BigDecimal money;

    private String detail;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Date getRecordStartDate() {
        return recordStartDate;
    }

    public void setRecordStartDate(Date recordStartDate) {
        this.recordStartDate = recordStartDate;
    }

    public Date getRecordEndDate() {
        return recordEndDate;
    }

    public void setRecordEndDate(Date recordEndDate) {
        this.recordEndDate = recordEndDate;
    }

    public String getIncomeType() {
        return incomeType;
    }

    public void setIncomeType(String incomeType) {
        this.incomeType = incomeType;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("IncomeBatchDTO{");
        sb.append("userId=").append(userId);
        sb.append(", recordStartDate=").append(recordStartDate);
        sb.append(", recordEndDate=").append(recordEndDate);
        sb.append(", incomeType='").append(incomeType).append('\'');
        sb.append(", money=").append(money);
        sb.append(", detail='").append(detail).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
